import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { Search, Icon, Swipe, SwipeItem, Grid, GridItem, Tabbar, TabbarItem, CountDown, List, Form, CellGroup, Field, Button, Toast, Loading, ConfigProvider, Image, IndexBar, IndexAnchor, NavBar, Sidebar, SidebarItem } from 'vant'
import 'vant/lib/index.css'
import service from './utils/service'
import './assets/main.css'
import store from './store'

const app = createApp(App)

app.config.globalProperties.$http = service
app.use(router)
app.use(store)

app.use(Search)
app.use(Icon)
app.use(Swipe)
app.use(SwipeItem)
app.use(Grid)
app.use(GridItem)
app.use(Tabbar)
app.use(TabbarItem)
app.use(CountDown);
app.use(List);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Button)
app.use(Toast)
app.use(Loading)
app.use(Image)
app.use(ConfigProvider)
app.use(IndexBar)
app.use(IndexAnchor)
app.use(NavBar)
app.use(Sidebar)
app.use(SidebarItem)

app.mount('#app')
